import RootStatus from "../RootStatus";
import { PlayerActions, PlayerStatusMachine } from "../PlayerStatusMachine";

const { ccclass, property } = cc._decorator;

@ccclass
export default class UnEquipStatus extends RootStatus {

    onEnter() {
        this.spritePlayer.getComponent(cc.Animation).play("player_unequip");
        super.onEnter();
    }

    onExit() {
        super.onExit();
    }

    onUpdate(dt: number) {

    }

    onAnimationFinished() {
        this.machine.changeStatus(PlayerActions.stand1)
    }
}
